import http from '@/service/http'
import type * as T from '@/types/api/index'
const commentApi: T.ICommentApi = {
  list(data) {
    return http.post('/comment/list', data)
  },
  childer(id) {
    return http.post('/comment/childer', {
      id
    })
  },
  like(data) {
    return http.post('/comment/doLike', data)
  },
  comments(data) {
    return http.post('/comment/submit', data)
  },
  reply(data) {
    return http.post('/comment/replySubmit', data)
  }
}

export default commentApi
